﻿<%@ Page Title="Contact" Theme="Mobile" Language="C#" MasterPageFile="~/ProductMaster.master" AutoEventWireup="true" CodeBehind="Contact.aspx.cs" Inherits="MobileShop.Contact" %>

<%@ Register Assembly="MSCaptcha" Namespace="MSCaptcha" TagPrefix="cc" %>

<asp:Content ID="Content1" ContentPlaceHolderID="bodyContent" runat="server">

    <table style='margin: auto' cellspacing="2">
            <tr>
                <td>
                    <label class='normal'>Name</label>
                    <label class='required'>*</label>
                </td>
             </tr>
            <tr>
                <td>
                    <asp:TextBox style='width:200px' ID='txtName' runat="server" ></asp:TextBox>
                    <asp:RequiredFieldValidator ValidationGroup="Save" ID="require1" runat="server" ControlToValidate="txtName"
                        Display="Dynamic" CssClass="requiredField" ErrorMessage="" Text=""></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    <label class='normal'>Email</label>
                    <label class='required'>*</label>
                </td>
             </tr>
            <tr>
                <td>
                    <asp:TextBox style='width:200px' ID='txtEmail' runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ValidationGroup="Save" ID="RequiredFieldValidator1" runat="server"
                    ControlToValidate="txtEmail" Display="Dynamic" CssClass="requiredField" ErrorMessage=""
                    Text=""></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator Display="Dynamic" CssClass="requiredField" ID="regexEmailValid" runat="server" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ControlToValidate="txtEmail" ErrorMessage="<br/>Invalid Email Format"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td>
                    <label class='normal'>Address</label>
                </td>
             </tr>
            <tr>
                <td>
                    <asp:TextBox style='width:200px' ID='txtAddress' runat="server" ></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    <label class='normal'>Subject</label>
                    <label class='required'>*</label>
                </td>
             </tr>
            <tr>
                <td>
                    <asp:TextBox style='width:200px' ID='txtSubject' runat="server" ></asp:TextBox>
                    <asp:RequiredFieldValidator ValidationGroup="Save" ID="RequiredFieldValidator3" runat="server"
                    ControlToValidate="txtSubject" Display="Dynamic" CssClass="requiredField" ErrorMessage=""
                    Text=""></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td style="vertical-align: top;">
                    <label class='normal'>Content</label>
                    <label class='required'>*</label>
                </td>
             </tr>
            <tr>
                <td> 
                    <asp:TextBox style='width:200px' ID='txtContent' TextMode="MultiLine" Rows="3" runat="server" ></asp:TextBox>
                    <asp:RequiredFieldValidator ValidationGroup="Save" ID="RequiredFieldValidator4" runat="server"
                    ControlToValidate="txtContent" Display="Dynamic" CssClass="requiredField" ErrorMessage=""
                    Text=""></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td style='vertical-align:top'>
                    <label class='normal'>Validation Code</label>
                    <label class='required'>*</label>
                </td>
             </tr>
            <tr>
                <td style="text-align:left; vertical-align:top;">
                    <asp:TextBox style='width:200px' ID="txtCode" runat="server" ></asp:TextBox><br />
                    <asp:Label ID="Label11" runat='server' Text="Please type below characters." class="normal"></asp:Label><br />
                    <cc:CaptchaControl  ID="ccJoin" runat="server" CaptchaBackgroundNoise="none" CaptchaLength="5" CaptchaHeight="60" CaptchaWidth="200" CaptchaLineNoise="Medium" CaptchaMinTimeout="5" CaptchaMaxTimeout="240" />
                    <asp:RequiredFieldValidator ValidationGroup="Save" ID="RequiredFieldValidator2" runat="server" class='requiredField' ErrorMessage="" Text='' Display="Dynamic" ControlToValidate="txtCode"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Button id="btnSubmit" runat="server" OnClick="btnSubmit_OnClick" ValidationGroup="Save" Text="Submit" />
                    <br />
                    <br />
                    <asp:Label ID="lblError" runat="server" class='required'></asp:Label>
                    <asp:Label Visible="false" ID="lblNote" runat="server" class='note'>Your message has been sent. Thank you for supporting us.</asp:Label>
                </td>
            </tr>
        </table>

</asp:Content>
